.class public Lcom/waiqin365/h5/location/acty/WqLocationMapActy;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Lcom/baidu/mapapi/map/BaiduMap$OnMapTouchListener;


# instance fields
.field private a:Lcom/waiqin365/base/login/mainview/TitleBar;

.field private b:Lcom/baidu/mapapi/map/MapView;

.field private c:Landroid/widget/ImageButton;

.field private d:Landroid/widget/ImageButton;

.field private e:Landroid/widget/Button;

.field private f:Landroid/widget/TextView;

.field private g:Lcom/baidu/mapapi/map/BaiduMap;

.field private h:Lcom/waiqin365/h5/location/acty/a;

.field private i:Lcom/waiqin365/compons/c/g;

.field private j:Lcom/waiqin365/compons/c/f;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/h5/location/acty/WqLocationMapActy;Lcom/waiqin365/compons/c/f;)Lcom/waiqin365/compons/c/f;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->j:Lcom/waiqin365/compons/c/f;

    return-object p1
.end method

.method private a()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->h:Lcom/waiqin365/h5/location/acty/a;

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/h5/location/acty/a;

    invoke-direct {v0, p0}, Lcom/waiqin365/h5/location/acty/a;-><init>(Lcom/waiqin365/h5/location/acty/WqLocationMapActy;)V

    iput-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->h:Lcom/waiqin365/h5/location/acty/a;

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->i:Lcom/waiqin365/compons/c/g;

    if-nez v0, :cond_1

    new-instance v0, Lcom/waiqin365/compons/c/g;

    iget-object v1, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->h:Lcom/waiqin365/h5/location/acty/a;

    invoke-direct {v0, v1}, Lcom/waiqin365/compons/c/g;-><init>(Lcom/waiqin365/compons/c/l;)V

    iput-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->i:Lcom/waiqin365/compons/c/g;

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->i:Lcom/waiqin365/compons/c/g;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/g;->c()V

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->i:Lcom/waiqin365/compons/c/g;

    const/16 v1, 0x2710

    invoke-virtual {v0, v1}, Lcom/waiqin365/compons/c/g;->a(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->i:Lcom/waiqin365/compons/c/g;

    invoke-virtual {v0, p0}, Lcom/waiqin365/compons/c/g;->a(Landroid/content/Context;)V

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->i:Lcom/waiqin365/compons/c/g;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/g;->e()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/h5/location/acty/WqLocationMapActy;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->b()V

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/h5/location/acty/WqLocationMapActy;)Lcom/waiqin365/compons/c/f;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->j:Lcom/waiqin365/compons/c/f;

    return-object v0
.end method

.method private b()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->i:Lcom/waiqin365/compons/c/g;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->i:Lcom/waiqin365/compons/c/g;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/g;->f()V

    :cond_0
    return-void
.end method

.method static synthetic c(Lcom/waiqin365/h5/location/acty/WqLocationMapActy;)Lcom/baidu/mapapi/map/BaiduMap;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->g:Lcom/baidu/mapapi/map/BaiduMap;

    return-object v0
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->back()V

    goto :goto_0

    :sswitch_1
    new-instance v0, Lcom/waiqin365/lightapp/view/a/a;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/view/a/a;-><init>()V

    invoke-virtual {p0}, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "returnTo"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/view/a/a;->a:Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->j:Lcom/waiqin365/compons/c/f;

    iput-object v1, v0, Lcom/waiqin365/lightapp/view/a/a;->b:Ljava/lang/Object;

    invoke-static {}, Lcom/waiqin365/lightapp/view/a/b;->a()Ljava/util/Observable;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/util/Observable;->notifyObservers(Ljava/lang/Object;)V

    invoke-virtual {p0}, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->back()V

    goto :goto_0

    :sswitch_2
    invoke-direct {p0}, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->a()V

    goto :goto_0

    :sswitch_3
    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->g:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/BaiduMap;->getMapStatus()Lcom/baidu/mapapi/map/MapStatus;

    move-result-object v0

    iget v0, v0, Lcom/baidu/mapapi/map/MapStatus;->zoom:F

    iget-object v1, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->g:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v1}, Lcom/baidu/mapapi/map/BaiduMap;->getMaxZoomLevel()F

    move-result v1

    cmpg-float v0, v0, v1

    if-gez v0, :cond_0

    invoke-static {}, Lcom/baidu/mapapi/map/MapStatusUpdateFactory;->zoomIn()Lcom/baidu/mapapi/map/MapStatusUpdate;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->g:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/BaiduMap;->animateMapStatus(Lcom/baidu/mapapi/map/MapStatusUpdate;)V

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->c:Landroid/widget/ImageButton;

    invoke-virtual {v0, v3}, Landroid/widget/ImageButton;->setEnabled(Z)V

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->c:Landroid/widget/ImageButton;

    invoke-virtual {v0, v2}, Landroid/widget/ImageButton;->setEnabled(Z)V

    goto :goto_0

    :sswitch_4
    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->g:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/BaiduMap;->getMapStatus()Lcom/baidu/mapapi/map/MapStatus;

    move-result-object v0

    iget v0, v0, Lcom/baidu/mapapi/map/MapStatus;->zoom:F

    iget-object v1, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->g:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v1}, Lcom/baidu/mapapi/map/BaiduMap;->getMinZoomLevel()F

    move-result v1

    cmpl-float v0, v0, v1

    if-lez v0, :cond_1

    invoke-static {}, Lcom/baidu/mapapi/map/MapStatusUpdateFactory;->zoomOut()Lcom/baidu/mapapi/map/MapStatusUpdate;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->g:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/BaiduMap;->animateMapStatus(Lcom/baidu/mapapi/map/MapStatusUpdate;)V

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->d:Landroid/widget/ImageButton;

    invoke-virtual {v0, v3}, Landroid/widget/ImageButton;->setEnabled(Z)V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->d:Landroid/widget/ImageButton;

    invoke-virtual {v0, v2}, Landroid/widget/ImageButton;->setEnabled(Z)V

    goto :goto_0

    nop

    :sswitch_data_0
    .sparse-switch
        0x7f0c0089 -> :sswitch_0
        0x7f0c008a -> :sswitch_0
        0x7f0c0d8c -> :sswitch_1
        0x7f0c0d8f -> :sswitch_3
        0x7f0c0d90 -> :sswitch_4
        0x7f0c0d91 -> :sswitch_2
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5

    const/16 v1, 0x8

    const/4 v4, 0x1

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f0302b5

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->setContentView(I)V

    const v0, 0x7f0c0d88

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/login/mainview/TitleBar;

    iput-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->i:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->h:Landroid/view/View;

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->a:Landroid/widget/ImageButton;

    invoke-virtual {v0, p0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->a:Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->e:Landroid/widget/TextView;

    const v1, 0x7f08053a

    invoke-virtual {p0, v1}, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0d8d

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/baidu/mapapi/map/MapView;

    iput-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->b:Lcom/baidu/mapapi/map/MapView;

    const v0, 0x7f0c0d8f

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageButton;

    iput-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->c:Landroid/widget/ImageButton;

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->c:Landroid/widget/ImageButton;

    invoke-virtual {v0, p0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0d90

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageButton;

    iput-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->d:Landroid/widget/ImageButton;

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->d:Landroid/widget/ImageButton;

    invoke-virtual {v0, p0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0d91

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->e:Landroid/widget/Button;

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->e:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0d8c

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->f:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->f:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->f:Landroid/widget/TextView;

    const v1, 0x7f0802bd

    invoke-virtual {p0, v1}, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->b:Lcom/baidu/mapapi/map/MapView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/MapView;->showZoomControls(Z)V

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->b:Lcom/baidu/mapapi/map/MapView;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/MapView;->getMap()Lcom/baidu/mapapi/map/BaiduMap;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->g:Lcom/baidu/mapapi/map/BaiduMap;

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->g:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v0, v4}, Lcom/baidu/mapapi/map/BaiduMap;->setMapType(I)V

    const/high16 v0, 0x41700000    # 15.0f

    invoke-static {v0}, Lcom/baidu/mapapi/map/MapStatusUpdateFactory;->zoomTo(F)Lcom/baidu/mapapi/map/MapStatusUpdate;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->g:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/BaiduMap;->setMapStatus(Lcom/baidu/mapapi/map/MapStatusUpdate;)V

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->g:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/BaiduMap;->getUiSettings()Lcom/baidu/mapapi/map/UiSettings;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/baidu/mapapi/map/UiSettings;->setZoomGesturesEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->g:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v0, v4}, Lcom/baidu/mapapi/map/BaiduMap;->setMyLocationEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->g:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v0, p0}, Lcom/baidu/mapapi/map/BaiduMap;->setOnMapTouchListener(Lcom/baidu/mapapi/map/BaiduMap$OnMapTouchListener;)V

    const v0, 0x7f0200b7

    invoke-static {v0}, Lcom/baidu/mapapi/map/BitmapDescriptorFactory;->fromResource(I)Lcom/baidu/mapapi/map/BitmapDescriptor;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->g:Lcom/baidu/mapapi/map/BaiduMap;

    new-instance v2, Lcom/baidu/mapapi/map/MyLocationConfiguration;

    sget-object v3, Lcom/baidu/mapapi/map/MyLocationConfiguration$LocationMode;->NORMAL:Lcom/baidu/mapapi/map/MyLocationConfiguration$LocationMode;

    invoke-direct {v2, v3, v4, v0}, Lcom/baidu/mapapi/map/MyLocationConfiguration;-><init>(Lcom/baidu/mapapi/map/MyLocationConfiguration$LocationMode;ZLcom/baidu/mapapi/map/BitmapDescriptor;)V

    invoke-virtual {v1, v2}, Lcom/baidu/mapapi/map/BaiduMap;->setMyLocationConfigeration(Lcom/baidu/mapapi/map/MyLocationConfiguration;)V

    invoke-direct {p0}, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->a()V

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->i:Lcom/waiqin365/compons/c/g;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->i:Lcom/waiqin365/compons/c/g;

    invoke-virtual {v0}, Lcom/waiqin365/compons/c/g;->h()V

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->b:Lcom/baidu/mapapi/map/MapView;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/h5/location/acty/WqLocationMapActy;->b:Lcom/baidu/mapapi/map/MapView;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/MapView;->onDestroy()V

    :cond_1
    invoke-super {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onDestroy()V

    return-void
.end method

.method public onTouch(Landroid/view/MotionEvent;)V
    .locals 0

    return-void
.end method
